import React, { useCallback } from 'react'
import {LeftnavItemWrapper} from './styledLeftnav'

export default function LeftnavItem({title,index,currentIndex,cb,textColor,innerBg,activeInnerBg}) {
    return (    
        <div
        onClick={cb(index)}
        className={index===currentIndex?'active':''}
        >
            {title}
        </div>
    )
}
